package com.yuma.springmcpserver.config;

import com.yuma.springmcpserver.service.MathService;
import com.yuma.springmcpserver.service.TeacherToolService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MCPServiceConfig {
    @Bean
    public ToolCallbackProvider toolCallbackProvider(MathService mathService,TeacherToolService teacherToolService) {
        return MethodToolCallbackProvider
                .builder()
                .toolObjects(mathService,teacherToolService)
                .build();
    }
}
